const ejs = require('ejs')

let str = '好开心啊，今天<%= a %>s'

let data = {
    a: 6
}

const html = ejs.render(str, data)

console.log(html)